package com.zhq.test;

import java.util.Scanner;

/**
 * @Author:钟豪强
 * @Description:
 * @Date Created in  2020-08-15 15:02
 * @Modified By:
 */
public class Person {
    private String name;
    private int age;
    public int id;

    public Person(){};

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat(){
        System.out.println("eat...");
    };

    public void eat(String food){
        System.out.println("eat..."+food);
    };

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", id=" + id +
                '}';
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        while(sc.hasNext()){
            int number = sc.nextInt();
            int sum =0;
            for(int i =0;i<number;i++){
                sum+=sc.nextInt();
            }
            System.out.println(sum);
        }
    }
}
